﻿using AutoMapper;
using Equipment.API.DTOs.RequestDto.DefectlocationListRequest;
using Equipment.API.DTOs.RequestDto.OutgoinginspectionRequest;
using Equipment.API.DTOs.ResponseDto.DefectlocationResponse;
using Equipment.API.DTOs.ResponseDto.OutgoinginspectionRequest;
using Equipment.Domain.Detectionmethod;
using Equipment.Domain.Outgoinginspectionfolder;

namespace Equipment.API
{
    public class MappingProfile : Profile
    {
        public MappingProfile()
        {
            CreateMap<Outgoinginspection, UpdateOutgoinginsRequestDto>().ReverseMap();
            CreateMap<Outgoinginspection, AddOutgoinginspectionResponseDto>().ReverseMap();
            CreateMap<Outgoinginspection, GetOutgoingRequestDto>().ReverseMap();


           

            //缺陷位置
            CreateMap<AddDefectlocationResponseDto,Defectlocation>().ReverseMap();
            CreateMap<UpdateDefectlocationRequestDto, Defectlocation>().ReverseMap();
            CreateMap<DefectlocationDropdownResponseDto, Defectlocation>().ReverseMap();


            

            //缺陷等级
            CreateMap<AddDefectgradeResponseDto, Defectgrade>().ReverseMap();
            CreateMap<GetDefectgradeRequestDto, Defectgrade>().ReverseMap();
            CreateMap<GetDefecttypeResponseDto, Defectgrade>().ReverseMap();
            CreateMap<UpdateDefectgradeRequestDto, Defectgrade>().ReverseMap();
            
            CreateMap<DefectgradeDropdownResponseDto,Defectgrade>().ReverseMap();
            

            //缺陷类型
            CreateMap<AddDefecttypeResponseDto, Defecttype>().ReverseMap();
            CreateMap<UpdateDefecttypeRequestDto, Defecttype>().ReverseMap();
            CreateMap<DefecttypeDropdownResponseDto, Defecttype>().ReverseMap();






        }
    }
}
